<?php

namespace Drinkiit\BlogBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Drinkiit\BlogBundle\Controller\IndexController;

class IndexControllerTest extends WebTestCase
{
	public function test_pcIndex()
	{
		$client = static::createClient();
		/*
		$crawler = $client->request('GET', '/');
		/*
		$this->assertTrue($crawler->filter('html:contains("<navm>")')->count() > 0, "L'index ne contient pas de menu");
		//$this->assertTrue($crawler->filter('nav:contains("Connexion")')->count() > 0, "Le menu ne contient pas de div");
		$this->assertTrue($crawler->filter('nav')->count() > 0, "Ne contient pas nav");
		$this->assertTrue($crawler->filter('content')->count() > 0, "Ne contient pas content");
		$this->assertTrue($crawler->filter('div')->count() > 0, "Ne contient pas div");
		//*/
		//$this->assertContains('navl', $client->getResponse()->getContent(), "ne contient pas de nav...");
	}
}
